package com.houtai.service.dict;

import com.houtai.bean.TsJzDict;
import com.houtai.dao.TsJzDictDao;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class DictService {
    private static Logger logger = Logger.getLogger(DictService.class);
    @Autowired
    private TsJzDictDao tsJzDictDao;







    public List<TsJzDict> findAllDictByParentId(int parent_id) {
        return tsJzDictDao.findDictByParentId(parent_id);
    }
    public TsJzDict findTsJzDictById(Integer dict_id) {
        return tsJzDictDao.findDictById(dict_id);
    }
    public List<TsJzDict> findTsJzDict(String code_type) {
        return tsJzDictDao.findDictByType(code_type);
    }
}
